package com.gjy.design.proxy.staticp;

import com.gjy.design.proxy.OrderService;
import com.gjy.design.proxy.OrderServiceImpl;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 10:41:00
 */
public class Demo {

    public static void main(String[] args) {
        OrderService real = new OrderServiceImpl();
        OrderService proxy = new OrderServiceLogProxy(real);
        proxy.createOrder("A-100", 3);
        proxy.cancelOrder("ORD-001");
    }

}
